/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session05;

import java.util.Hashtable;
import java.util.Set;
import session04.Student;

/**
 *
 * @author macbookpro
 */
public class HashTableTest {
    public static void main(String[] args) {
        Hashtable ht = new Hashtable();
        
        ht.put(1, new Student("R00004", "aaaa"));
        ht.put(2, new Student("R00003", "cccc"));
        ht.put(3, new Student("R00002", "bbbb"));
        ht.put(3, new Student("R00001", "xxxx"));
        
        Set s = ht.keySet();
        
        for(Object i : s){
            System.out.println(i + ": " + ht.get(i));
        }
    }
}
